import request from '@/utils/request'

// 查询非会员购买设置列表
export function listNonVipSetting(query) {
  return request({
    url: '/weiriya/nonVipSetting/list',
    method: 'get',
    params: query
  })
}

// 查询非会员购买设置详细
export function getNonVipSetting(id) {
  return request({
    url: '/weiriya/nonVipSetting/' + id,
    method: 'get'
  })
}

// 新增非会员购买设置
export function addNonVipSetting(data) {
  return request({
    url: '/weiriya/nonVipSetting',
    method: 'post',
    data: data
  })
}

// 修改非会员购买设置
export function updateNonVipSetting(data) {
  return request({
    url: '/weiriya/nonVipSetting',
    method: 'put',
    data: data
  })
}

// 删除非会员购买设置
export function delNonVipSetting(id) {
  return request({
    url: '/weiriya/nonVipSetting/' + id,
    method: 'delete'
  })
}
